#include <system/MouseEvent.h>

namespace ne
{
    MouseEvent::MouseEvent(const Mouse &mouse)
        : Event("NE_MOUSE_EVENT"),
          position(mouse.getPosition()),
          wheelVariation(mouse.getWheelVariation()),
          buttonsDown(mouse.getButtonsDown())
    {
    }

    MouseEvent::MouseEvent(const MouseEvent &e)
        : Event(e),
          position(e.position),
          wheelVariation(e.wheelVariation),
          buttonsDown(e.buttonsDown)
    {
    }

    MouseEvent& MouseEvent::operator = (const MouseEvent &e)
    {
        Event::operator = (e);
        position = e.position;
        wheelVariation = e.wheelVariation;
        buttonsDown = e.buttonsDown;
        return *this;
    }

    MouseEvent::~MouseEvent()
    {
    }
}
